







<div class="x-body">
    <xblock>
        <span class="x-right" style="line-height:40px;margin-right:10px;">共有数据：{$list.count} 条</span>
        <span class="x-right" style="line-height:40px; margin-right:10px;">总金额：{$list.money}</span>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <!--<th>-->
            <!--<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>-->
            <!--</th>-->
            <th>ID</th>
            <th>会员基础信息</th>
            <th>委托信息</th>
            <th>其它</th>
            <th>状态</th>
            <th>操作</th>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>
            <td>{$vo.id}</td>
            <td>
                <div><label>用户名:</label><span>{$vo.username}{if condition ="$vo.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</span></div>
                <div>  <label>手机:</label><span>{$vo.mobile|default='未绑定'}</span></div>
                <div>  <label>会员级别:</label><span>{$vo.member.level.level_name}</span></div>
                <div> <label>推荐人:</label><span>{$vo.member.leader_nickname}</span></div>
                <div> <label>注册时间:</label><span>{$vo.reg_time|date='Y-m-d H:i:s',###}</span></div>



            </td>
            <td>

                <div>  <label>产品名称:</label><span>{$vo.investment.name}</span></div>
                <div>  <label>分红比例:</label><span>赌王：{$vo.investment.king_bonus}%   用户：{$vo.investment.user_bonus}%</span></div>
                <div><label>止损:</label><span>{$vo.investment.stop_loss_rate}%</span></div>
                <div><label>止赢:</label><span>{$vo.investment.winning_rate}%</span></div>
                <div><label>委托金额:</label><span>{$vo.money}</span></div>


            </td>
            <td>

                <div><label>委托时间:</label><span>{$vo.create_time}</span></div>
                <div><label>结束委托时间:</label><span>{if condition="$vo['state'] eq 5"}{$vo.expire_time}{/if}</span></div>

            </td>

            <td>{$vo.state_text}</td>
            <td>
                    {if condition="$vo['state'] eq 1"}
                <div style="margin-bottom: 5px;"><label>取消:</label><span>    <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini" href="{:url('king_order_update', array('id' => $vo['id'], 'state' =>3))}">  取消</a></ob_link></span></div>
                {/if}
                {if condition="$vo['state'] eq 0"}
                <div style="margin-bottom: 5px;"><label>解除（原路返回）:</label><span>    <ob_link><a class="ajax-get layui-btn layui-btn-normal layui-btn-mini" href="{:url('king_order_update', array('id' => $vo['id'], 'state' =>2))}">  解除</a></ob_link></span></div>
                {/if}
            </td>




        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list.list->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });








    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>

